public class OCP2_Main{
	public static void main(String[] args){
		Shape[] obj = new Shape[3];
		obj[0] = new Rectangle(2,10);
		obj[1] = new Circle(3);
		obj[2] = new Triangle(3,10);

		AreaCalculator ac = new AreaCalculator();
		int temp = ac.Area(obj);
		System.out.println(temp);
	}
}
